<?php


class BO_User extends BO {
    
    /**
     * @var string
     * @orm char(64)
     */
    public $firstName;
    
    /**
     * @var string
     * @orm char(64)
     */
    public $lastName;
    
    /**
     * @var string
     * @orm char(64)
     */
    public $login;
    
    /**
     * @var string
     * @orm char(64)
     */
    public $password;
    
    /**
     * @var string
     * @orm char(64)
     */
    public $email;
    
    /**
     * @var string
     * @orm char(64)
     */
    public $role;
    
    /**
     * @var array of BO_Log
     * @orm composited_of many BO_Log inverse(user)
     */
    public $logs;
    
    public function getName() {
        return $this->firstName.' '.$this->lastName;
    }
    
    public function getRoles() {
        return explode(',', $this->role);
    }
    
    public function getLogs() {
        return (array)$this->logs;
    }
    
    
}

?>
